package com.zime;

import java.security.PublicKey;

public class point<Public> {

    public int x;
    public int y;

    public double distance(){
     return Math.sqrt(x*x+y*y);
    }
    public class Point {
        public int x;
        public int y;

        public double distance() { return Math.sqrt(x*x+y*y);}

        public double distance1(int a,int b)
        {
            return Math.sqrt((x-a)*(x-a)+(y-b)*(y-b));
        }

        public Point(int x, int y) {
            this.x = x;
            this.y = y;
        }

        public int getX() {
            return x;
        }

        public void setX(int x) {
            this.x = x;
        }

        public int getY() {
            return y;
        }

        public void setY(int y) {
            this.y = y;
        }
        public String toString() {
            return "Point{" +
                    "x=" + x +
                    ", y=" + y +
                    '}';
        }

    }



}
